package com.ymdx.action;

import com.opensymphony.xwork2.ModelDriven;
import com.ymdx.entity.Banner;
import com.ymdx.service.BannerService;
import com.ymdx.service.BaseService;

import javax.annotation.Resource;

/**
 * Created by yangliwei on 2017/8/16.
 */
public class BannerAction extends GenericActionSupport implements ModelDriven<Banner>{
    private Banner banner;

    @Resource
    private BannerService bannerService;

    /**
     * 获取所有轮播图
     * @return
     */

    /**
     * 保存标签
     * @return
     */

    /**
     * 删除标签
     * @return
     */


    @Override
    public Banner getModel() {
        if(banner == null)
            banner = new Banner();
        return banner;
    }
}
